<template>
	<view class="">
		<!--返回顶部-->
		<u-back-top :scrollTop="scrollTop" :mode="mode"
					:bottom="bottom" :right="right" :top="top" :icon="icon" :custom-style="customStyle"
					:icon-style="iconStyle" :tips="tips">
		</u-back-top>
	</view>
</template>

<script>
	export default {
		data() {
			return {
                /***回到顶部*/
                scrollTop: 0,
                mode: 'circle',
                bottom: 200,
                right: 40,
                top: 400,
                icon: 'arrow-upward',
                iconStyle: {
                    color: '#f29100',
                    fontSize: '34rpx'
                },
                customStyle: {
                    color: '#f29100',
                },
                tips: '返回',
                /***回到顶部*/
			}
		},
		methods: {

		},
		onPageScroll(e) {
			this.scrollTop = e.scrollTop;
		}
	}
</script>

<style lang="scss" scoped>
	.u-demo {
		height: 200vh;
	}
</style>
